﻿using Medianamik.Core;
using Medianamik.Core.DAL.Repositories;
using Medianamik.DummyWebSite.Data.Repositories;

namespace Medianamik.DummyWebSite.Container.Registries
{
    public class MedianamikRegistry : Client.MVP.MedianamikRegistry
    {
        protected override void AddBindings()
        {
            ForRequestedType<IMedianamikRepository<IMedianamikDTOWithName>>()
               .TheDefaultIsConcreteType<MedianamikDTOWithNameRepository>();
            ForRequestedType<IBaseTypeRepository>()
                .TheDefaultIsConcreteType<BaseTypeRepository>();
            ForRequestedType<INodeRepository>()
                .TheDefaultIsConcreteType<NodeRepository>();
        }
    }
}
